# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-net-ip-minimal
pkgver=0.06
pkgrel=9
pkgdesc="Perl/CPAN Module Net::IP::Minimal"
arch=(any)
url="https://search.cpan.org/dist/Net-IP-Minimal"
license=("GPL" "PerlArtistic")
depends=("perl")
source=("https://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/Net-IP-Minimal-$pkgver.tar.gz")
sha256sums=('734767e83620eadd80dc466b67102cc55643a2278d20c304b75d401f075fbd13')

build() {
  cd "$srcdir"/Net-IP-Minimal-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Net-IP-Minimal-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
